package com.zhou.project.modules.circle.circleGroupPosts.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zhou.project.components.base.entity.Base;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Getter
@Setter
@TableName(value = "ucc_circle_type_posts")
@ApiModel("[圈子模块-话题管理-数据模型]")
public class CircleGroupPosts extends Base {

    @ApiModelProperty(name = "name",value = "话题名称",required = true,dataType = "String")
    @NotBlank(message = "话题名称不允许为空")
    @Length(min = 2, max = 15, message = "话题名称长度要求在{min}-{max}之间")
    private String name ;

    @ApiModelProperty(name = "introduce",value = "话题内容",required = true,dataType = "String")
    @NotBlank(message = "话题内容不允许为空")
    @Length(min = 2,max = 200,message = "内容长度要求在{min}-{max}之间")
    private String introduce ;

    @ApiModelProperty(name = "circleTypeId",value = "话题类型id",required = true,dataType = "int")
    @NotNull
    private Integer circleTypeId ;

}
